#include "WorkpieceFactory.h"

shared_ptr<Workpiece> WorkpieceFactory::CreateWorkpiece(WorkpieceType type)
{
    if(type == WORKPIECE_TYPE_E452)
    {
        return shared_ptr<Workpiece>(new WorkpieceE452());
    }
    else if(type == WORKPIECE_TYPE_E575)
    {
        return shared_ptr<Workpiece>(new WorkpieceE575());
    }
    else
    {
        // nothing to do
    }
}
